REPO_REV := \"$(shell svnversion -n)\"

P00 = source_analysis
P01 = test




LIBR   =-L/home/suligab/installed/root/lib -lGui -lCore -lCint -lRIO -lNet -lHist -lGraf  -lGpad -lTree -lRint -lMatrix  -lMathCore -lThread -pthread -lm -ldl -rdynamic -L/home/suligab/installed/geant4/geant4-install/bin/./../lib -lG4OpenGL  -lG4gl2ps -lG4Tree -lG4FR -lG4GMocren -lG4visHepRep -lG4RayTracer -lG4VRML -lG4vis_management -lG4modeling -lG4interfaces -lG4persistency -lG4analysis -lG4error_propagation -lG4readout -lG4physicslists -lG4run -lG4event -lG4tracking -lG4parmodels -lG4processes -lG4digits_hits -lG4track -lG4particles -lG4geometry -lG4materials -lG4graphics_reps -lG4intercoms -lG4global -lG4clhep
FLAGS2  = -DG4_STORE_TRAJECTORY -DG4VERBOSE -DG4UI_USE -DG4VIS_USE -DG4UI_USE_TCSH -DG4INTY_USE_QT -DG4UI_USE_QT -DG4VIS_USE_OPENGLQT -DG4INTY_USE_XT -DG4VIS_USE_OPENGLX -DG4VIS_USE_OPENGL -g -Wno-deprecated -O2 -Wall -fPIC -pthread -m64 -I/home/suligab/installed/root/include/ -DG4UI_USE_TCSH -I/home/suligab/installed/geant4/geant4-install/bin/./../include/Geant4 -I/include -I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtOpenGL



all:	$(P00) 

$(P00): $(P00).o $(P01).o 
	g++ $(FLAGS)  -o sourceAnalysis $(P00).o  $(LIBR)


	 	 

$(P00).o:$(P00).cc $(INCL)
	g++  $(FLAGS) $(LIBR) $(INCL) -c $(P00).cc -DREPO_REV=$(REPO_REV)
$(P01).o:src/$(P01).cc $(INCL)
	g++  $(FLAGS) $(LIBR) $(INCL) -c src/$(P01).cc


clean: 
	rm -rf *.o sourceAnalysis *.root
